package com.ldy.core.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ldy.core.common.Result;
import com.ldy.core.service.BaseLogsService;

@RestController
@RequestMapping("/logs")
@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
public class LogsController {

	@Autowired
	private BaseLogsService service;

	@PostMapping("/selectPage")
	public Result selectPage(int current, int size, String operator, String type) {
		return Result.success(service.selectPage(current, size, operator, type));
	}
}
